import java.util.LinkedList;

public class myStack {
    static LinkedList stack = new LinkedList();
    public void push(Object o){
        stack.addLast(o);
    }
    public Object pop(){
        return stack.removeLast();
    }
    public boolean hashNext(){
        return stack.size()>0;
    }
}
